"use strict";
cc._RF.push(module, '8b1635C5WREwo7CmsEKewz0', '_UserDieResultHandler');
// CustomResultHandler/_UserDieResultHandler.js

"use strict";

// @import
var mod_Global = require("../_Global");

var CHeroAction = require("../CHeroAction"); // @export


module.exports = {
  /** @override */
  handle: function handle(oUserDieResult) {
    if (!oUserDieResult) {
      return;
    } // 获取目标用户 Id


    var nTargetUserId = oUserDieResult.targetUserId;
    var strTargetUserId = nTargetUserId.toString(); // 从字典中获取英雄

    var oExistHero = mod_Global.heroMap[strTargetUserId];

    if (!oExistHero) {
      return;
    } // 英雄死亡


    oExistHero.getComponent(CHeroAction).die();
  }
};

cc._RF.pop();